<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<html>
	<head>
		<title>角色管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="/css/modules.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/modules1.css" type="text/css"
			media="screen" />
	</head>
<body style="background-color:transparent">
	<h2 class="jquery_tab_title">角色管理</h2>
	<div style="padding-top:20px;">
<s:form action="PrivilegeGroupManage" method="post" namespace="/control/privilege">
<s:hidden name="page"/>
	<table width="100%" cellspacing="0" cellpadding="0">
    	<tr>
    		<th class="th_first">代号</th>
    		<th>修改</th>
    		<th>名称</th>
    		<th>权限值</th>
    		<th>操作</th>
    	</tr>
		<!-----------LOOP START------------->
		<s:set name="pageView" value="#request.pageView.records"></s:set>
		<s:iterator value="#pageView">
		<tr>
      		<td class="td_first">${id}</td>
      		<td><a href="<s:url action="PrivilegeGroupManage!edit"/>?groupid=${id}">
	  		<img src="/images/edit.gif" width="15" height="16" title="编辑" /></a></td>
      		<td>${name }</td>
      		<td>${level }</td>
			<td>&nbsp;
			<buyou:permission privilege="delete" module="privilegeGroup">
				<a href="<s:url action="PrivilegeGroupManage!delete"/>?groupid=<s:property value="id"/>" onclick="return confirm('确定将此记录删除?')">删除</a>
			</buyou:permission>
			</td>
		</tr>
		</s:iterator>
  	</table>
</s:form></div>
<div id="toolnav">
	<span style="float:left">
		<!-- 
		
		 -->
		<input type="button" class="button" onClick="javascript:window.location.href='<s:url action="PrivilegeGroupManage!add"/>'" value="添加新角色" />
	</span>
	<span style="float:right">
		<jsp:include page="/WEB-INF/page/share/fenye.jsp" />
	</span>
</div>
</body></html>